/*
 * Term.cpp
 *
 *  Created on: Nov 26, 2012
 *      Author: m
 */

#include "Term.h"

namespace physical
{

Term::Term()
{
}

Term::Term( const std::string value ) :
        m_term( value )
{
}

Term::Term( const Term& other )
{
    *this = other;
}

Term::~Term()
{
}

const std::string& Term::getTerm() const
{
    return m_term;
}

void Term::setTerm( const std::string& term )
{
    m_term = term;
}

Term& Term::operator =( const Term& rhs )
{
    m_term = rhs.m_term;

    return *this;
}

bool Term::operator ==( const Term& other ) const
{
    return m_term == other.m_term;
}

bool Term::operator !=( const Term& other ) const
{
    return !( *this == other );
}

} /* namespace physical */
